package com.hzlj.position.locate.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 定位记录-最新有效位置(PositionNewestEffective)实体类
 *
 * @author makejava
 * @since 2024-07-10 09:56:40
 */
@Data
@ToString
@TableName(value = "position_newest_effective", autoResultMap = true)
public class PositionNewestEffective {
    /**
     * 矫正ID(jz_jbxx)
     */
    @TableId(type = IdType.INPUT, value = "jz_id")
    private String jzId;
    /**
     * 定位渠道类型,dict-LOCATE_CHANNEL_TYPE
     */
    @TableField(value = "channel_type")
    private String channelType;
    /**
     * 位置ID
     */
    @TableField(value = "position_id")
    private String positionId;
    /**
     * 设备编号
     */
    @TableField(value = "device_code")
    private String deviceCode;
    /**
     * 定位渠道,dict-LOCATE_CHANNEL
     */
    @TableField(value = "channel")
    private String channel;
    /**
     * 点验方式,dict-REPORT_TYPE
     */
    @TableField(value = "report_type")
    private String reportType;
    /**
     * 经度
     */
    @TableField(value = "longitude")
    private String longitude;
    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private String latitude;
    /**
     * 位置描述
     */
    @TableField(value = "position", keepGlobalFormat = true)
    private String position;
    /**
     * 定位时间-由设备产生
     */
    @TableField(value = "position_time")
    private Date positionTime;
    /**
     * 告警类型,dict-LOCATE_WARNING_TYPE
     */
    @TableField(value = "warning_type")
    private String warningType;
    /**
     * 是否是告警记录
     */
    @TableField(value = "warning")
    private Boolean warning;
}
